﻿<?php
 
    include "connect.php"; 
    $q = $_GET["q"];
	$sql=mysql_query("select * from `bo mon` where ma_khoa='$q'");
	if(mysql_num_rows($sql) > 0)
	{
		echo '<select name="bomon" id="bomon">
            <option value="">Chọn Bộ Môn</option>';
		while($row = mysql_fetch_row($sql))
		{
			echo '<option value="'.$row[0].'">'.$row[1].'</option>';
        }
			echo '</select>';
	} 
?>